import * as types from '../action-types';

let initalState = {number: 0};
export default function (state=initalState,action) {
    switch (action.type) {
        case types.INCREMENT : {
            return {number:state.number+1}
        }
        default :
            return  state

    }
}
